<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
/**
 * 路由
 * http://backend.manager.my/api/wechat
 * http://backend.manager.my/api/wechatpay
 * http://backend.manager.my/api/wechatapi
 * http://backend.manager.my/api/payNotify
 */
Route::middleware('auth:admin')->group(function() {
    Route::post('/wechat', 'WechatDemoController@index')->name('wechat.index');
    Route::post('/wechatpay', 'WechatDemoController@pay')->name('wechat.pay');
    Route::post('/wechatapi', 'WechatDemoController@wechatapi')->name('wechat.wechatapi');
    Route::post('/payNotify', 'WechatDemoController@payNotify')->name('wechat.payNotify');
});
